#include <tchar.h>
//#define LOGGING


#ifdef LOGGING

//initiates logging (open log file)
int log_init();

//log
void log(const _TCHAR* szFmt,...);

//finish logging (close log file)
void log_finit();

BOOL log_error(_TCHAR * funcname,int err=0);

#else

//just define stubs
#define log_init()	TRUE
#define log	
#define log_finit()	
#define log_error	FALSE

#endif
